home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Doco ƒ / CSMP ƒ / CSMP-V1-096.TXT < prev    next >
Encoding:
Text File  |  1992-06-30  |  44.7 KB  |  1,211 lines

  1. C.S.M.P. Digest             Wed, 27 May 92       Volume 1 : Issue 96
  2.  
  3. Today's Topics:
  4.  
  5.     Mac programming--where, how to start?
  6.     cancellation (was Re: MF scrap && DialogSelect crash)
  7.     AppleTalk, games, speed...
  8.     General SCSI / CDROM info needed...
  9.     How do you do a simple output window in MacApp?
  10.     Datagloves
  11.     CountAppFiles doesn't work
  12.     TCL Mailing List?
  13.     Weird problem with TEIdle/Blinking cursor
  14.     Color picts drawing in B$W. HELP!
  15.  
  16.  
  17. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  18.  
  19. These digests are available (by using FTP, account anonymous, your email
  20. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  21. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  22. Questions list.  The last several issues of the digest are available from
  23. sumex-aim.stanford.edu as well.
  24.  
  25. These digests are also available via email.  Just send a note saying that you
  26. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  27. automatically receive each new digest as it is created.
  28.  
  29. The digest is a collection of articles from the internet newsgroup comp.sys.
  30. mac.programmer.  It is designed for people who read c.s.m.p. semi-regularly
  31. and want an archive of the discussions.  If you don't know what a newsgroup
  32. is, you probably don't have access to it.  Ask your systems administrator(s)
  33. for details.  (This means you can't post questions to the digest.)
  34.  
  35. The articles in these digests are taken directly from comp.sys.mac.programmer.
  36. They are not edited; all articles included in this digest are in their original
  37. posted form.  The only articles that are -not- included in these digests are
  38. those which didn't receive any replies (except those that give information
  39. rather than ask a question).  All replies to each article are concatenated
  40. onto the original article in the order in which they were received.  Article
  41. threads are not added to the digests until the last article added to the
  42. thread is at least one month old (this is to ensure that the thread is dead
  43. before adding it to the digests).
  44.  
  45. Send administrative mail to mkelly@cs.uoregon.edu.
  46.  
  47. -------------------------------------------------------
  48.  
  49. From: hulsej@sun.lclark.edu (Jose Hulse)
  50. Subject: Mac programming--where, how to start?
  51. Date: 20 Apr 92 19:22:31 GMT
  52. Organization: Lewis & Clark College, Portland OR
  53.  
  54.  
  55. Hello all,
  56.  
  57. Here's the scoop--I'm a fairly proficient Mac user, but I have no idea
  58. about programming.  About as adventurous as I get is to perform simple
  59. ResEdit hacks that someone else has come up with.
  60.  
  61. But I want to program--especially in the fields of foreign language soft-
  62. ware and games.  How do I start learning?  I took "intro to computers"
  63. way back in college (I'm 31 now), but want to concentrate on the Mac
  64. platform specifically.  I don't have the time or resources to go into a
  65. full-blown computer science program now, but I do have an SE/30 with a
  66. Micron 8-bit card and Seiko monitor, some time and lots of motivation.
  67.  
  68. Where do I start?
  69.  
  70. Thanks in advance,
  71. Jose Hulse
  72.  
  73. +++++++++++++++++++++++++++
  74.  
  75. From: Jeremiah.Blatz@dartmouth.edu (Jeremiah Blatz)
  76. Date: 26 Apr 92 19:19:20 GMT
  77. Organization: Dartmouth College, Hanover, NH
  78.  
  79. The first thing you should do -in my opinion- is join APDA. It's free,
  80. and they'll send you a catalog of nifty stuff. To join, send e-mail to
  81. APDA@apple.applelink.com (I think) and tell them you want to join (be
  82. sure to give them your address so they can send you that nifty
  83. catalog).
  84.  
  85. As for programming languages, try HyperCard, It's really easy, you can
  86. probably get it for free off a BBS, and you get instant gratification.
  87.  
  88. After you get the basics down, I suggest you move up to C or Pascal. I
  89. use Pascal, but I would reccoment C, I hear it's a far less
  90. frustrating. As for development platforms, the standard ones are MPW
  91. (it supports many languages), or THINK C and THINK Pascal. MPW is slow,
  92. semi-confusing, expensive, but powerful. The THINK products are easier,
  93. faster, and slightly less expensive, but they lack MPW's power.
  94.  
  95. Hope this helps,
  96. Jeremiah
  97.  
  98. ---------------------------
  99.  
  100. From: jcav@quads.uchicago.edu (JohnC)
  101. Subject: cancellation (was Re: MF scrap && DialogSelect crash)
  102. Organization: The Royal Society for Putting Things on Top of Other Things
  103. Date: Wed, 22 Apr 1992 00:37:56 GMT
  104.  
  105. In article <PHILS.92Apr21172246@chaos.cs.brandeis.edu> phils@chaos.cs.brandeis.edu (Phil Shapiro) writes:
  106. >In article <1992Apr21.172014.29640@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  107. >
  108. >   >but it's cleaner than other techniques I've seen. It removes any
  109. >   >overhead from calling EventAvail() or GetNextEvent(), and it doesn't
  110. >   >have the problems of calling GetOSEvent() or (shudder!) looking at the
  111. >   >event queue directly.
  112. >
  113. >   Remember, this comes from a guy whose company distributes code that does
  114. >   exactly that.  :-)  Check out AbortInQueue(), in TBUtilities.c 
  115. >   (TCL 1.1)--it walks the queue.  I must be missing something--what's so
  116. >   bad about doing this?
  117. >
  118. >This is bad because it will give you false alarms about
  119. >command-periods when your app is in the background. The low memory
  120. >queue corresponds to the OS Event queue, which contains all events
  121. >before the Process Manager distributes them to applications.
  122.  
  123. Which leads me to the obvious question: why in hell isn't "cancellation" a
  124. sub-type of OSEvent, like suspend/resume and mousemoved??  There are all
  125. sorts of localization and concurrency issues to fight with when checking for
  126. command-period, but they are all things that the OS itself could easily
  127. handle.  If it did so, then all a program would have to do is check for a
  128. nice easy-to-digest cancelEvt.  This would have been a wonderful thing to
  129. have included in the System 7 feature set.
  130.  
  131. - -- 
  132. John Cavallino                  |  EMail: jcav@midway.uchicago.edu
  133. University of Chicago Hospitals |         John_Cavallino@uchfm.bsd.uchicago.edu
  134. Office of Facilities Management | USMail: 5841 S. Maryland Ave, MC 0953
  135. B0 f++ c+ g+ k s++ e+ h- pv     |         Chicago, IL  60637
  136.  
  137. +++++++++++++++++++++++++++
  138.  
  139. From: ksand@apple.com (Kent Sandvik)
  140. Date: 24 Apr 92 01:24:03 GMT
  141. Organization: MacDTS Mongols
  142.  
  143. In article <1992Apr22.003756.23172@midway.uchicago.edu>, jcav@quads.uchicago.edu
  144. (JohnC) writes:
  145. > Which leads me to the obvious question: why in hell isn't "cancellation" a
  146. > sub-type of OSEvent, like suspend/resume and mousemoved??  There are all
  147. > sorts of localization and concurrency issues to fight with when checking for
  148. > command-period, but they are all things that the OS itself could easily
  149. > handle.  If it did so, then all a program would have to do is check for a
  150. > nice easy-to-digest cancelEvt.  This would have been a wonderful thing to
  151. > have included in the System 7 feature set.
  152.  
  153. Actually, I'm of the same opinion. The code I posted earlier should maybe 
  154. at least be part of a library call available from MPW or Think. Have to
  155. work on this thing...
  156.  
  157. Cheers,
  158. Kent/DTS = Dynamic Topology Snowball
  159.  
  160. +++++++++++++++++++++++++++
  161.  
  162. From: lsr@taligent.com (Larry Rosenstein)
  163. Date: 24 Apr 92 21:42:30 GMT
  164. Organization: Taligent, Inc.
  165.  
  166. In article <1992Apr22.003756.23172@midway.uchicago.edu>, jcav@quads.uchicago.edu
  167. (JohnC) wrote:
  168. > Which leads me to the obvious question: why in hell isn't "cancellation" a
  169. > sub-type of OSEvent, like suspend/resume and mousemoved??  There are all
  170.  
  171. I think this was contemplated.  I seem to recall that there were abort events in
  172. the Phonebook Edition of Inside Mac.  (Note that in Inside Mac I, there's no
  173. event code = 9.)
  174.  
  175. - -----
  176. Larry Rosenstein
  177. Taligent, Inc.
  178. lsr@taligent.com
  179.  
  180. ---------------------------
  181.  
  182. From: ozma@kuhub.cc.ukans.edu
  183. Subject: AppleTalk, games, speed...
  184. Date: 22 Apr 92 04:03:02 GMT
  185. Organization: University of Kansas Academic Computing Services
  186.  
  187. Anyone have any enlightened musings about using AppleTalk in games?  The issue
  188. is one of speed.
  189.  
  190. I have played around with ALAP - got it working.  The problem was that too much
  191. data was lost (collisions? - my incompetence?) and that you couldn't talk
  192. across bridges or zones.
  193.  
  194. Recently I've been at work implementing DDP.  Not bad.  I've been getting
  195. *fairly* reliable packets sent.  My timing experiments between a Plus and a
  196. IIsi suggest that a packet is being sent and received at a cost of 1 Tick in
  197. processor time.  Not bad, but I'm thinking 0.4 Ticks would be almost ideal.
  198.  
  199. Synchronization has been a problem too.  My feelings currently are - screw the
  200. synch.  One machine will host another, and the faster machine is just going to
  201. control the playing field.  All the various tricks I've tried have only managed
  202. to slow the machines down to below that of the slower machine - or cause jerky
  203. and stacato motion.
  204.  
  205. Sure the Comm Toolbox and all it's transparency would be wonderful. 
  206. Nonetheless, speed is an issue.  As is compatibility with Macs down to, say the
  207. Mac Plus.  A reasonable "scope", i.e. access to other zones, etc. is
  208. prefereable, but not to the severe detriment of speed.  Package integrity is
  209. desirable too, but again ... a few lost packages for the good of the games
  210. speed is okay.
  211.  
  212. Any ideas?
  213.  
  214. john calhoun-
  215.  
  216. +++++++++++++++++++++++++++
  217.  
  218. From: time@ice.com (Tim Endres)
  219. Date: 22 Apr 92 14:24:21 GMT
  220. Organization: ICE Engineering, Inc.
  221.  
  222.  
  223. In article <1992Apr21.230303.39539@kuhub.cc.ukans.edu> (comp.sys.mac.programmer), ozma@kuhub.cc.ukans.edu writes:
  224. > Synchronization has been a problem too.  My feelings currently are - screw the
  225. > synch.  One machine will host another, and the faster machine is just going to
  226. > control the playing field.  All the various tricks I've tried have only managed
  227. > to slow the machines down to below that of the slower machine - or cause jerky
  228. > and stacato motion.
  229. > Sure the Comm Toolbox and all it's transparency would be wonderful. 
  230. > Nonetheless, speed is an issue.  As is compatibility with Macs down to, say the
  231. > Mac Plus.  A reasonable "scope", i.e. access to other zones, etc. is
  232. > prefereable, but not to the severe detriment of speed.  Package integrity is
  233. > desirable too, but again ... a few lost packages for the good of the games
  234. > speed is okay.
  235. > Any ideas?
  236.  
  237. When a networked game is being developed, you have two basic choices.
  238. One, use the network to send information regarding the "field" to
  239. each host for update, thus leaving all "processing" to a "server"
  240. host. The other approach is to simply echo every user's input to each
  241. and every host and let them all update their own field, thus making
  242. every host a server and client. When your bandwidth is low, the second
  243. approach is usually your only choice.
  244.  
  245. tim.
  246.  
  247.  
  248. tim endres - time@ice.com  -or-  uupsi!tbomb!time
  249. ICE Engineering, Inc. - Phone (313) 449 8288 - FAX (313) 449-9208
  250. 8840 Main Street, Whitmore Lake, MI  48189
  251. USENET - a slow moving self parody... ph
  252.  
  253. +++++++++++++++++++++++++++
  254.  
  255. From: mspace@netcom.com (Brian Hall)
  256. Date: 22 Apr 92 18:36:11 GMT
  257. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  258.  
  259. In article <1992Apr21.230303.39539@kuhub.cc.ukans.edu> ozma@kuhub.cc.ukans.edu writes:
  260. >Sure the Comm Toolbox and all it's transparency would be wonderful. 
  261. >Nonetheless, speed is an issue.  As is compatibility with Macs down to, say the
  262. >Mac Plus.  A reasonable "scope", i.e. access to other zones, etc. is
  263. >prefereable, but not to the severe detriment of speed.  Package integrity is
  264. >desirable too, but again ... a few lost packages for the good of the games
  265. >speed is okay.
  266. >
  267. >Any ideas?
  268. >
  269. >john calhoun-
  270. >
  271.  
  272. The comm toolbox sure would be hot.  Then you would not only have code
  273. that works over a network, but one that works over modems, across zones,
  274. wireless, who knows!
  275.  
  276.  
  277. - -- 
  278. +-----------------------------------------------------------------------------+
  279. | Brian Hall, Mark/Space Softworks                                            |
  280. | mspace@netcom.com; Applelink, America Online: MarkSpace                     |
  281. +-----------------------------------------------------------------------------+
  282.  
  283. +++++++++++++++++++++++++++
  284.  
  285. From: Jim_Holt@aprdlgtr.sps.mot.com (Jim Holt)
  286. Date: 24 Apr 92 15:00:40 GMT
  287. Organization: Motorola
  288.  
  289. In article <1CE00001.1loa5o@tbomb.ice.com>, time@ice.com (Tim Endres) writes:
  290. > In article <1992Apr21.230303.39539@kuhub.cc.ukans.edu> (comp.sys.mac.programmer), ozma@kuhub.cc.ukans.edu writes:
  291. > > Synchronization has been a problem too.  My feelings currently are - screw the
  292. > > synch.  One machine will host another, and the faster machine is just going to
  293. > > control the playing field.  All the various tricks I've tried have only managed
  294. > > to slow the machines down to below that of the slower machine - or cause jerky
  295. > > and stacato motion.
  296. > > 
  297. > > Sure the Comm Toolbox and all it's transparency would be wonderful. 
  298. > > Nonetheless, speed is an issue.  As is compatibility with Macs down to, say the
  299. > > Mac Plus.  A reasonable "scope", i.e. access to other zones, etc. is
  300. > > prefereable, but not to the severe detriment of speed.  Package integrity is
  301. > > desirable too, but again ... a few lost packages for the good of the games
  302. > > speed is okay.
  303. > > 
  304. > > Any ideas?
  305. > When a networked game is being developed, you have two basic choices.
  306. > One, use the network to send information regarding the "field" to
  307. > each host for update, thus leaving all "processing" to a "server"
  308. > host. The other approach is to simply echo every user's input to each
  309. > and every host and let them all update their own field, thus making
  310. > every host a server and client. When your bandwidth is low, the second
  311. > approach is usually your only choice.
  312.  
  313. My partner and I are developing a networked game as well.  We were discussing 
  314. the pros and cons of these methods this morning, and it seems to us that the
  315. issue of synchronizing information becomes complicated with method 2, while 
  316. having a central database server burdens the machine doing the serving.  In
  317. light of this, I was leaning towards method 2 using ATP.  John, your comments
  318. are interesting to me, as we haven't gotten to the point of bench testing
  319. performace.  Is the tradeoff of speed vs. reliability an issue ? Is DDP
  320. that much faster than ATP ?  Also, how much info are you moving around ?
  321.  
  322. We were considering doing something like this :
  323.  
  324. while no OS events available do
  325.    Synchronize DBs    (< 1k bytes of info)
  326.    Visually fixup any screen discrepancies found
  327.    Perform 1 iteration of game
  328. end
  329.  
  330. Any comments ?
  331.  
  332.  
  333. - -jh
  334.  
  335. +++++++++++++++++++++++++++
  336.  
  337. From: ozma@kuhub.cc.ukans.edu
  338. Date: 25 Apr 92 20:23:30 CDT
  339. Organization: University of Kansas Academic Computing Services
  340.  
  341. > My partner and I are developing a networked game as well.  We were discussing 
  342. > the pros and cons of these methods this morning, and it seems to us that the
  343. > issue of synchronizing information becomes complicated with method 2, while 
  344. > having a central database server burdens the machine doing the serving.  In
  345. > light of this, I was leaning towards method 2 using ATP.  John, your comments
  346. > are interesting to me, as we haven't gotten to the point of bench testing
  347. > performace.  Is the tradeoff of speed vs. reliability an issue ? Is DDP
  348. > that much faster than ATP ?  Also, how much info are you moving around ?
  349. > We were considering doing something like this :
  350. > while no OS events available do
  351. >    Synchronize DBs    (< 1k bytes of info)
  352. >    Visually fixup any screen discrepancies found
  353. >    Perform 1 iteration of game
  354. > end
  355. > Any comments ?
  356. > -jh
  357.  
  358. Well, lets see.  ATP it seems is very awkward to work with.  I kept getting
  359. various crashes just trying to get it up and going.  Hmmm.  In any event, I was
  360. pretty unexcited about ATP even up to that point.  Since, in my game, both
  361. machines are running symmetrically, it's *very* trashy to have one machine
  362. doing SendRequests and the other doing, GetRequests followed by SendResponse's. 
  363. Very odd and inelegant.
  364.  
  365. DDP is quite a workhorse though - it seems.  My current strategy centers around
  366. the two machines sending a "frame counter" with each packet.  When a machine
  367. receives a packet, it compares it's own framecounter with that of the other
  368. machines.  If the other machine is falling behind, the fast machine will delay
  369. a Tick.  As well, the machines will compare the most recent framecounter
  370. received with the previous framecounter.  Should they differ by more than 1,
  371. you can safely assume a packet was dropped.  At this point the machine that
  372. noticed the discrepancy will send a request for a large packet (tagged
  373. differently) asking for all current variable settings (relevant ones of
  374. course).
  375.  
  376. The idea is to send only mouse positions, button state, etc. between the
  377. machines and let each machine run it's own independent game.  Because the
  378. machines can get out of synch and since dropped packets could lead the two
  379. machines to end up playing seperate games, the framecounter is used.
  380.  
  381. john calhoun-
  382.  
  383.  
  384. +++++++++++++++++++++++++++
  385.  
  386. From: peirce@outpost.SF-Bay.org (Michael Peirce)
  387. Date: 26 Apr 92 16:44:59 GMT
  388. Organization: Peirce Software
  389.  
  390. Why not ADSP rather than DDP.  It's easier to program than DDP.
  391.  
  392. Just open a ADSP session in both directions and dump your data using
  393. dspWrites and dspReads.
  394.  
  395. - --  Michael Peirce         --   peirce@outpost.SF-Bay.org
  396. - --  Peirce Software        --   Suite 301, 719 Hibiscus Place
  397. - --  Macintosh Programming  --   San Jose, California USA 95117
  398. - --           & Consulting  --   voice: (408) 244-6554 fax: (408) 244-6882
  399. - --                         --   AppleLink: peirce & America Online: AFC Peirce
  400.  
  401. +++++++++++++++++++++++++++
  402.  
  403. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  404. Date: 28 Apr 92 05:28:25 GMT
  405. Organization: University of Waikato, Hamilton, New Zealand
  406.  
  407. In article <1992Apr25.202330.39652@kuhub.cc.ukans.edu>, ozma@kuhub.cc.ukans.edu writes:
  408.  
  409. > As well, the machines will compare the most recent framecounter
  410. > received with the previous framecounter.  Should they differ by more than 1,
  411. > you can safely assume a packet was dropped.  At this point the machine that
  412. > noticed the discrepancy will send a request for a large packet (tagged
  413. > differently) asking for all current variable settings (relevant ones of
  414. > course).
  415.  
  416. Sounds as though you need reliable communication between the two ends,
  417. which is where I'd go along with Michael Peirce's suggestion and say "Why
  418. not use ADSP?". DDP is good for those cases where loss of packets doesn't
  419. require much in the way of a recovery procedure. An interesting example
  420. would be real-time voice transmission.
  421.  
  422. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  423. Computer Services Dept                     fax: +64-7-838-4066
  424. University of Waikato            electric mail: ldo@waikato.ac.nz
  425. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  426. N w im r ved m tat ng s gnature virus with built-in spelling checker.
  427.  
  428. ---------------------------
  429.  
  430. From: efisch@cs.utexas.edu (Eric A. Fisch)
  431. Subject: General SCSI / CDROM info needed...
  432. Date: 23 Apr 92 03:08:56 GMT
  433. Organization: U Texas Dept of Computer Sciences, Austin TX
  434.  
  435.  
  436. I am looking for the source code to any sort of working CD-ROM
  437. driver- prefferably the audio driver. I am interested in trying
  438. to write a CD-ROM driver and need information about what SCSI signals
  439. cause the drive to do things like spin/search/play/eject...
  440.  
  441. Any help is appreciated... especially general scsi information.
  442.  
  443. regards,
  444. Eric Fisch
  445. efisch@cs.utexas.edu
  446.  
  447. +++++++++++++++++++++++++++
  448.  
  449. From: ksand@apple.com (Kent Sandvik)
  450. Date: 26 Apr 92 00:53:44 GMT
  451. Organization: MacDTS Mongols
  452.  
  453. In article <kvcai8INN71t@cash.cs.utexas.edu>, efisch@cs.utexas.edu (Eric A.
  454. Fisch) writes:
  455. > I am looking for the source code to any sort of working CD-ROM
  456. > driver- prefferably the audio driver. I am interested in trying
  457. > to write a CD-ROM driver and need information about what SCSI signals
  458. > cause the drive to do things like spin/search/play/eject...
  459. > Any help is appreciated... especially general scsi information.
  460.  
  461. DTS will have sample code out soon, soon, soon....Otherwise the developer CD
  462. should have snippets dealing with CD-ROM handling.
  463.  
  464.  
  465. Cheers,
  466. Kent
  467.  
  468. ---------------------------
  469.  
  470. From: aep@world.std.com (Andrew E Page)
  471. Subject: How do you do a simple output window in MacApp?
  472. Date: 23 Apr 92 18:19:47 GMT
  473. Organization: The World Public Access UNIX, Brookline, MA
  474.  
  475.  
  476.    All I want is a window that I can printf or << to.  Is there
  477. some simple way of doing this?
  478.  
  479.  
  480. - -- 
  481. Andrew E. Page CTO(Warrior Poet)|   Decision and Effort The Archer and Arrow
  482. DSP Ironworks                   |     The difference between what we are
  483. Macintosh and DSP Technology    |           and what we want to be.
  484.  
  485. +++++++++++++++++++++++++++
  486.  
  487. From: eric_berdahl@taligent.com (Eric Berdahl)
  488. Date: 23 Apr 92 23:05:25 GMT
  489. Organization: Taligent, Inc.
  490.  
  491. In article <Bn6Ax0.DLD@world.std.com>, aep@world.std.com (Andrew E Page) writes:
  492. >    All I want is a window that I can printf or << to.  Is there
  493. > some simple way of doing this?
  494.  
  495. Andrew,
  496.  
  497. If you are using MacApp 2.0, build a debug version of you application.  All
  498. stdout and cout are both directed to the transcript window that you can open
  499. from the debug menu.
  500.  
  501. If you are using MacApp 3.0, you donUt have to build a debug version of your
  502. application, but you do need to get a copy of SourceBug and have it running. 
  503. Note: this does not mean that you need to be SourceBugging you application!! 
  504. Just have SourceBug running at the same time that your MacApp 3.0 app is
  505. running.  In this configuration, stdout and cout are directed to a transcript
  506. window managed by SourceBug (SADE might do this, too, but I don't know for sure.
  507.  SourceBug I know for sure.)
  508.  
  509. Hope this helps,
  510. - --
  511. Eric Berdahl                                 MADA President
  512. Internet: eric_berdahl@taligent.com          AppleLink: BERDAHL
  513. #include <StdDisclaimer.h>
  514. This is a freeware signature.  What do you expect for nothing?
  515.  
  516. +++++++++++++++++++++++++++
  517.  
  518. From: trimper@edsi.plexus.COM (Greg Trimper)
  519. Date: 24 Apr 92 07:30:59 GMT
  520. Organization: Enterprise Data Systems Incorporated, Appleton WI
  521.  
  522. aep@world.std.com (Andrew E Page) writes:
  523.  
  524.  
  525. >   All I want is a window that I can printf or << to.  Is there
  526. >some simple way of doing this?
  527.  
  528. What I discovered a few weeks ago was the S I O W Build... option,
  529. which is a 32k Simple IO window.  If you build for that type
  530. of app, you should have no prob.
  531.  
  532.  
  533. Greg Trimper   trimper@edsi.plexus.com  
  534.  
  535. +++++++++++++++++++++++++++
  536.  
  537. From: aep@world.std.com (Andrew E Page)
  538. Organization: The World Public Access UNIX, Brookline, MA
  539. Date: Fri, 24 Apr 1992 15:00:30 GMT
  540.  
  541. In article <1992Apr24.073059.26912@edsi.plexus.COM> trimper@edsi.plexus.COM (Greg Trimper) writes:
  542. >aep@world.std.com (Andrew E Page) writes:
  543. >
  544. >
  545. >>   All I want is a window that I can printf or << to.  Is there
  546. >>some simple way of doing this?
  547. >
  548. >What I discovered a few weeks ago was the S I O W Build... option,
  549. >which is a 32k Simple IO window.  If you build for that type
  550. >of app, you should have no prob.
  551.  
  552.   Yes, but as the subject line said, I'm working with MacApp.  Is ther
  553. a way of adding SIOW windows within MacApp 3.0?
  554.  
  555.  
  556.  
  557. - -- 
  558. Andrew E. Page CTO(Warrior Poet)|   Decision and Effort The Archer and Arrow
  559. DSP Ironworks                   |     The difference between what we are
  560. Macintosh and DSP Technology    |           and what we want to be.
  561.  
  562. +++++++++++++++++++++++++++
  563.  
  564. From: mlanett@void.ncsa.uiuc.edu (Mark Lanett)
  565. Date: 23 Apr 92 20:40:07 GMT
  566. Organization: University of Illinois at Urbana
  567.  
  568. aep@world.std.com (Andrew E Page) writes:
  569.  
  570. >   All I want is a window that I can printf or << to.  Is there
  571. >some simple way of doing this?
  572.  
  573. There are several ways, depending on what you want the output for.
  574.  
  575. Debugging: MacApp 2.0 has a built-in Transcript window. In MacApp 3.0,
  576. stdout is redirected to SADE or SourceBug (the release notes discuss how
  577. to teach SADE to accept it).
  578.  
  579. Just to display messages (i.e., no scrollback): A TEView isn't desirable here
  580. because it keeps the history. I'd instead check out issue 9 (or 10?) of
  581. develop, which implements a message window using the CTB. You could also
  582. write some CTB classes while you are at it and donate them to the net :-)
  583.  
  584. With scrollback: You could add scrollback to the CTB window or use a TEView.
  585. I use a TEView, but under 3.0 I've never gotten it to update quite properly
  586. (under 2.0 it was fine). It doesn't update the portion that scrolled while
  587. printing, so I essentially call ForceRedraw after each print call, making
  588. it *rather* slow.
  589.  
  590. TTEView* gTranscript = nil;
  591.  
  592. #pragma trace off
  593. void DebugPrint (char * buffer, Boolean redraw, Boolean select = false)
  594. {
  595.         if (gTranscript) {
  596.                 PrintIntoTEView (buffer, gTranscript, redraw);
  597.                 gTranscript->GetWindow ()->Open ();
  598.                 gTranscript->SynchView (true);
  599.                 if (select) gTranscript->GetWindow ()->Select ();
  600.                 gTranscript->Update ();                 // does the redraw
  601.         }
  602. #if qDebug
  603.         printf ("%s", buffer);
  604. #endif qDebug
  605. }
  606.  
  607. #pragma trace off
  608. void Debug_Print (char * format, ...) // acts just like printf
  609. {
  610.         char temp [255];
  611.         va_list arglist;
  612.         va_start (arglist, format);
  613.         vsprintf (temp, format, arglist);
  614.         va_end (arglist);
  615.         DebugPrint (temp, true, false);
  616. }
  617.  
  618. #pragma trace off
  619. void PrintIntoTEView (char * text, TTEView * aTE, Boolean redraw)
  620. {
  621.         TESetSelect (32767, 32767, aTE->fHTE); // put selection at end
  622.         Handle itsText = aTE->fText; // what is in there already
  623.         long size = GetHandleSize (itsText); // how long is it (handle is always full so handle size == # of chars)
  624.         long add = strlen (text); // how long will it be after we print
  625.  
  626.         if (add + size > aTE->fMaxChars) // cannot exceed its size limit
  627.                 return; //Failure (minErr, 0); // should prob. do something here
  628.  
  629.         TEInsert (text, add, aTE->fHTE); // print it
  630.  
  631.         if (GetHandleSize (itsText) < size+add) // if it didn't print there's been a problem with growing the handle
  632.                 FailNIL (nil);
  633.  
  634.     // these are the magic lines that just refuse to update properly
  635.         aTE->fSpecsChanged = true; // mark it as needing to recalculate
  636.         aTE->RecalcText ();
  637.         aTE->SynchView (true); // let SynchView updateI
  638.         if (redraw) {
  639.                 aTE->ForceRedraw (); // I suggest you experiment with these
  640.                // aTE->Update(); // two lines
  641.         }
  642. }
  643. - -- 
  644. Mark Lanett, Software Tools Group, NCSA; mlanett@uiuc.edu; NCSA.STG (AppleLink)
  645.  
  646. +++++++++++++++++++++++++++
  647.  
  648. From: ksand@apple.com (Kent Sandvik)
  649. Date: 26 Apr 92 00:51:48 GMT
  650. Organization: MacDTS Mongols
  651.  
  652. In article <Bn6Ax0.DLD@world.std.com>, aep@world.std.com (Andrew E Page) writes:
  653. >    All I want is a window that I can printf or << to.  Is there
  654. > some simple way of doing this?
  655.  
  656. MacApp 2.0 had in debug mode a nice output window which handled printf,
  657. cout or writelns. This code was moved to the SourceBug debugger in 
  658. MacApp 3.0, i.e. if SourceBug is up and running, it will present
  659. cout statements in a window which is automagically opened.
  660.  
  661. Still, if you are keen to get a similar window in your application,
  662. check out the TTranscriptView unsupported class, available in the 
  663. same folder as MacApp 3.0 on the ETO.
  664.  
  665. Cheers,
  666. Kent
  667.  
  668. ---------------------------
  669.  
  670. From: peterhi@syma.sussex.ac.uk (Peter Hickman)
  671. Subject: Datagloves
  672. Date: 23 Apr 92 15:19:25 GMT
  673. Organization: University of Sussex
  674.  
  675. Does anyone have any pointer to connecting up a Nintendo powerglove up to a
  676. Mac? I seem to recall an article somewhere (possibly Byte) about this. Has
  677. someone a better memory than I about this.
  678. - -- 
  679. - --------------------------------------- peterhi@uk.ac.sussex.syma ------------
  680.       "More beer, more shouting, resistance is useless" - USTA bars
  681.  
  682. +++++++++++++++++++++++++++
  683.  
  684. From: omh@cs.brown.edu (Owen M. Hartnett)
  685. Date: 26 Apr 92 04:53:05 GMT
  686. Organization: Brown University Department of Computer Science
  687.  
  688. Try Goldbrick Systems in Cambridge MA (don't know their number).  They make
  689. a Nintendo Power Globe -> Mac interface with some software.  Seemed to work
  690. really well when they demonstrated for the BCS techgroup.
  691.  
  692. - -Owen
  693.  
  694. Owen Hartnett                omh@cs.brown.edu
  695. "FAITH, n. Belief without evidence in what is told by one who speaks
  696.         without knowledge, of things without parallel."
  697.             -Ambrose Bierce - The Devil's Dictionary
  698.  
  699. +++++++++++++++++++++++++++
  700.  
  701. From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
  702. Organization: University of Oregon Computer and Information Sciences Dept.
  703. Date: Sun, 26 Apr 1992 08:03:41 GMT
  704.  
  705. In article <1992Apr26.045305.6929@cs.brown.edu> omh@cs.brown.edu (Owen M. Hartnett) writes:
  706. >Try Goldbrick Systems in Cambridge MA (don't know their number).  They make
  707. >a Nintendo Power Globe -> Mac interface with some software.  Seemed to work
  708. >really well when they demonstrated for the BCS techgroup.
  709.  
  710. It's Transfinite Systems Company, Inc.
  711. P.O. Box N, MIT Branch Post Office
  712. Cambridge, MA  02139 USA
  713. Tel: 617-969-9570
  714. AppleLink: D2002
  715.  
  716. Mike.
  717. - -- 
  718. _____________________________________________________________________________
  719. Michael A. Kelly                                         University of Oregon
  720. mkelly@cs.uoregon.edu                             Computer Science Department
  721. _____________________________________________________________________________
  722.  
  723. +++++++++++++++++++++++++++
  724.  
  725. From: creedont@ohsu.edu (Thomas A. Creedon)
  726. Date: 24 Apr 92 22:31:22 GMT
  727. Organization: Oregon Hearing Research Center
  728.  
  729. In article <1992Apr23.151925.15912@syma.sussex.ac.uk>, peterhi@syma.sussex.ac.uk (Peter Hickman) writes:
  730. > Does anyone have any pointer to connecting up a Nintendo powerglove up to a
  731. > Mac? I seem to recall an article somewhere (possibly Byte) about this. Has
  732. > someone a better memory than I about this.
  733. > -- 
  734.  
  735.  
  736. If I recall correctly the info-mac archives at sumex contained an article
  737. on that subject.  Good luck!
  738.  
  739. Toodle-loooooo.......
  740. Thomas
  741.  
  742. +++++++++++++++++++++++++++
  743.  
  744. From: ksand@apple.com (Kent Sandvik)
  745. Date: 26 Apr 92 00:54:54 GMT
  746. Organization: MacDTS Mongols
  747.  
  748. In article <1992Apr23.151925.15912@syma.sussex.ac.uk>, peterhi@syma.sussex.ac.uk
  749. (Peter Hickman) writes:
  750. > Does anyone have any pointer to connecting up a Nintendo powerglove up to a
  751. > Mac? I seem to recall an article somewhere (possibly Byte) about this. Has
  752. > someone a better memory than I about this.
  753.  
  754. The electronic 'recipe' has been posted on sci.virtual now and then. I should
  755. have it somewhere, but I didn't find it in my current mess of my electronic
  756. archives.
  757.  
  758. Cheers,
  759. Kent
  760.  
  761. +++++++++++++++++++++++++++
  762.  
  763. From: jmunkki@hila.hut.fi (Juri Munkki)
  764. Date: 26 Apr 92 19:49:34 GMT
  765. Organization: Helsinki University of Technology, Finland
  766.  
  767. In article <23991@goofy.Apple.COM> ksand@apple.com (Kent Sandvik) writes:
  768. >In article <1992Apr23.151925.15912@syma.sussex.ac.uk>, peterhi@syma.sussex.ac.uk
  769. >(Peter Hickman) writes:
  770. >> 
  771. >> Does anyone have any pointer to connecting up a Nintendo powerglove up to a
  772. >> Mac? I seem to recall an article somewhere (possibly Byte) about this. Has
  773. >> someone a better memory than I about this.
  774. >
  775. >The electronic 'recipe' has been posted on sci.virtual now and then. I should
  776. >have it somewhere, but I didn't find it in my current mess of my electronic
  777. >archives.
  778.  
  779. Someone in sci.virtual-worlds is working on a serial port device that would
  780. support the Sega 3D glasses and the PowerGlove in hires mode. The circuit
  781. diagram that I have now only supports the joystick mode. Byte also handled
  782. only the joystick mode.
  783.  
  784. Unless the serial port device (a 68HC11 computer really) is too expensive,
  785. I'll probably be buying one for my PowerGlove.
  786.  
  787. The hires mode of the PowerGlove has been fairly well documented, but so
  788. far no one has connected it directly to a Mac. (PC and Atari software
  789. exists, but I guess they use the parallel ports.) Don't ask me how to do
  790. it: I haven't saved the articles.
  791.  
  792.    ____________________________________________________________________________
  793.   / Juri Munkki        /  Helsinki University of Technology   /  Wind  / Project /
  794.  / jmunkki@hut.fi  /  Computing Center Macintosh Support  /  Surf  / Arashi  /
  795.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  796.  
  797. ---------------------------
  798.  
  799. From: casgrain@ERE.UMontreal.CA (Casgrain Philippe)
  800. Subject: CountAppFiles doesn't work
  801. Date: 24 Apr 92 14:51:33 GMT
  802. Organization: Universite de Montreal
  803.  
  804.  
  805.         Dear net friends,
  806.  
  807.         I am working on a small drag-and-drop app, and I need to know
  808. the number of files the user has selected in the finder to drop on my app.
  809.         Now, I read in IM-II that I can call 'CountAppFiles' to do this,
  810. but even if I drop a large number of files on my app, the 'count' variable
  811. always contains zero.
  812.  
  813.         I don't think I'm doing anything non-kosher; I tried initializing
  814. the Toolbox before and after CountAppFiles, to no avail.
  815.  
  816.         If you have stumbled on this problem, or have already written a
  817. drag-and-drop app, do you have an idea of what's going on?
  818.  
  819.         Thanks,
  820.         Philippe
  821.         Casgrain@ERE.UMontreal.CA
  822.  
  823. P.S. Thanks to the people who answered my previous posting; they were very
  824.         helpful.
  825.  
  826. +++++++++++++++++++++++++++
  827.  
  828. From: steve.herman%express@freedom.msfc.nasa.gov (Steve Herman)
  829. Organization: Boeing Computer Support Services (BCSS)
  830. Date: Fri, 24 Apr 1992 17:03:14 GMT
  831.  
  832. In article <1992Apr24.145133.20208@cc.umontreal.ca>, 
  833. casgrain@ERE.UMontreal.CA (Casgrain Philippe) writes:
  834. >         Dear net friends,
  835. >  
  836. >         I am working on a small drag-and-drop app, and I need to know
  837. > the number of files the user has selected in the finder to drop on my app.
  838. >         Now, I read in IM-II that I can call 'CountAppFiles' to do this,
  839. > but even if I drop a large number of files on my app, the 'count' variable
  840. > always contains zero.
  841.  
  842.     Is your application Apple Event aware?  If so, CountAppFiles always seems 
  843. to return zero (although I was never able to find this documented anywhere). 
  844. You should look for the "Open Documents" apple event and process the event in 
  845. a manner similar to the example on page 6-34 of Inside Mac Volume VI.
  846.  
  847.  
  848. Good Luck, 
  849.  
  850. Steve 
  851.  
  852. - -------------------------------------
  853. Steve Herman
  854. "Happiness is just a 'Flaming Moe' away"
  855. - -------------------------------------
  856.  
  857. ---------------------------
  858.  
  859. From: athos@Apple.COM (Richard Eames)
  860. Subject: TCL Mailing List?
  861. Date: 23 Apr 92 23:58:17 GMT
  862. Organization: Apple Computer Inc., Cupertino, CA
  863.  
  864. I have heard there is some sort of TCL mailing list.  How does one get added?
  865.  
  866. Thanks,
  867.  
  868. Rick Eames
  869. athos@apple.com
  870.  
  871. +++++++++++++++++++++++++++
  872.  
  873. From: Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer)
  874. Date: 24 Apr 92 15:19:27 GMT
  875. Organization: MIND LINK! - British Columbia, Canada
  876.  
  877. > I have heard there is some sort of TCL mailing list.  How does one get added?
  878.  
  879. There seems to be no specific TCL discussion list so am creating one here
  880. at Brown.  At this time it will be an unmoderated list for the discussion
  881. of the Think Class Library for C and Pascal (seems little need to restrict
  882. it).
  883.  
  884. The list will be
  885.  
  886.      tcl-talk@brown.edu
  887.  
  888. Requests should be made to
  889.  
  890.     tcl-request@brown.edu
  891.  
  892. The FTP archive will be at
  893.  
  894.      ftp.brown.edu:/pub/tcl
  895.  
  896. WAIS indices of the list and archive materials will be at
  897.  
  898.      (:source
  899.           :database-name "tcl-talk"
  900.           :ip-name "wais.brown.edu" )
  901.  
  902.      (:source
  903.           :database-name "tcl-archive"
  904.           :ip-name "wais.brown.edu" )
  905.  
  906. - -- Andrew Gilmartin
  907.    Computing & Information Services
  908.    Brown University
  909.  
  910.    Andrew_Gilmartin@Brown.Edu
  911.  
  912. - --
  913. - -------------------------------------------------------------------
  914.  Daryl_Spitzer@mindlink.bc.ca     "Life isn't just, life just is."
  915.          a2251@mindlink.bc.ca              -- Me  (I think.)
  916.        Spitzer@UNCAMULT.BITNET
  917. - -------------------------------------------------------------------
  918.  
  919. +++++++++++++++++++++++++++
  920.  
  921. From: Andrew_Gilmartin@Brown.EDU
  922. Date: 24 Apr 1992 20:31:28 GMT
  923. Organization: Brown University
  924.  
  925. >I have heard there is some sort of TCL mailing list.  How does one get added?
  926.  
  927. THINK CLASS LIBRARY DISCUSSION LIST
  928.  
  929. The Think Class Library discussion list is for those interested in
  930. using Symantec's Think C and Think Pascal object-oriented class
  931. library for Macintosh. Discussion topics include
  932.  
  933. *    class usage, design, and implementation
  934.  
  935. *    TCL bug reports, work-arounds, and fixes
  936.  
  937. *    TCL application development techniques
  938.  
  939. *    TCL development aids
  940.  
  941. Mail to the discussion list should be sent to
  942.  
  943.      tcl-talk@brown.edu
  944.  
  945. The discussion is archived and WAIS searchable at "(:source :database-
  946. name tcl-talk :ip-name wais.brown.edu)".
  947.  
  948.  
  949. THINK CLASS LIBRARY REQUESTS
  950.  
  951. All requests should be made to
  952.  
  953.      tcl-request@brown.edu
  954.  
  955. Use this address to make changes to your subscription (subscribing,
  956. suspending, unsubscribing, etc.) and for submissions to the archive
  957. (see below). I really can't handle requests for materials from the
  958. archive; I hope to soon have an automatic listserv doing this for me
  959. (recommendations of good, simple software is appreciated).
  960.  
  961. Expect a 36 hour turnaround time for most requests.
  962.  
  963.  
  964. THINK CLASS LIBRARY ARCHIVE
  965.  
  966. In addition to the discussion list, there is a ftp accessable archive at
  967.  
  968.      ftp.brown.edu:/pub/tcl
  969.  
  970. Login as anonymous; please use your email address as the password.
  971.  
  972. The archive is organized by contributor and category. The current
  973. organization is
  974.  
  975. contributors   Directories of contributors and their contributions.
  976.                All other directories have their materials linked from
  977.                here.
  978.  
  979. bugs           Bug notices with work-arounds or fixes when known. Bug
  980.                filenames have the form "<class>-<method>.bug.<index>":
  981.                Bugs affecting the whole class do not have a method
  982.                specifier.
  983.  
  984. classes        Contributor classes and their documentation. Class
  985.                filenames have the form "<class>.class.<index>".
  986.  
  987. core           Changes to the TCL core classes. Core change filenames
  988.                have the form "<class>-<method>.core.<index>". Changes
  989.                affecting the whole class do not have a method
  990.                specifier.
  991.  
  992. doc            Tutorials, style guides, etc.
  993.  
  994. examples       TCL technique examples.
  995.  
  996. misc           Useful TCL stuff.
  997.  
  998. new            Links to all new files added to the archive in the last
  999.                month.
  1000.  
  1001. tcl-talk       Archive of the tcl-talk@brown.edu discussion list. The
  1002.                archive currently has one file per message organized by
  1003.                year. Message filenames have the form
  1004.                "<date>.talk.<index>".
  1005.  
  1006. Submissions to the archive should be mailed to tcl-request or ftped to
  1007. ftp.brown.edu:/incoming/tcl with accompanying mail to tcl-request. Encode 
  1008. all submissions in BinHex 4.0 format (aka HQX) and include a descriptive 
  1009. header (for example, the text of the readme file). Please do not 
  1010. redistribute Symantec's TCL source.
  1011.  
  1012.  
  1013. WHAT IS WAIS?
  1014.  
  1015. WAIS is an emerging Internet protocol for the searching of a
  1016. distributed set of databases. The protocal is based upon the ANSI
  1017. draft Z39.50. WAIS stands for Wide Area Information Servers and
  1018. orginated as a project  between Thinking Machines, Apple, and Dow
  1019. Jones. Thinking Machines has been promoting WAIS by providing a free
  1020. server and client software. The Macintosh client, WAIStation, was
  1021. written in TCL by a subscriber to TCL-Talk. Anyway, the software is
  1022. available from think.com:/wais as is more information.
  1023.  
  1024. When using WAIStation all you need to know is that you can find out
  1025. what databases are available at Brown University by creating a new
  1026. Source withdatabase name INFO, address wais.brown.edu, and port 210.
  1027.  
  1028. 4/17/92
  1029.  
  1030. - -- 
  1031. Andrew Gilmartin                        
  1032. Computing & Information Services
  1033. Brown University
  1034.  
  1035. Andrew_Gilmartin@Brown.Edu
  1036.  
  1037.  
  1038. ---------------------------
  1039.  
  1040. From: jverdega@cae.wisc.edu (Jeffrey Verdegan)
  1041. Subject: Weird problem with TEIdle/Blinking cursor
  1042. Date: 24 Apr 92 18:53:20 GMT
  1043. Organization: College of Engineering, Univ. of Wisconsin-Madison
  1044.  
  1045. Okay.  I'm confused.  My app was working (more or less) with THINK C 4.0.  
  1046. Now I'm in the process of upgrading to 5.0.2, and I'm having a wee bit of 
  1047. trouble.  TEIdle doesn't seem to be working.  When I start the app, the 
  1048. blinking insertion bar either is or isn't there, but it doesn't blink. After
  1049. I type or something (don't remember exactly how it happens), it disappears.
  1050. If I click and hold the mouse button, the insertion bar shows up.  When I
  1051. release the mouse, the insertion bar goes away.  Some combination of typing,
  1052. creating a new edit window, switching to THINK's debugger and back to my app
  1053. will eventually cause it to start blinking, but I haven't been able to figure
  1054. out what exact sequence does it, or whether it's the same each time.
  1055.  
  1056. I call TEIdle at least once through my event loop, oft times more.  Anybody
  1057. have any idea what I should look for?  Are there any known problems with 5.0.2
  1058. and TEIdle, etc.?  As I've been porting, I've been rearranging some things to
  1059. try to clean up the code and compartmentalize things a bit more, so it may
  1060. be something I did, but I don't see anything unkosher, and I'm not sure exactly
  1061. what I should be looking for anyway.
  1062.  
  1063. Tons o' thanks for any help!
  1064.  
  1065. Jeff
  1066.  
  1067.  
  1068. - ----------
  1069.  
  1070. Jeff Verdegan
  1071. University of Wisconsin-Madison
  1072. Computer-Aided Engineering Center
  1073. jjv@caestaff.engr.wisc.edu
  1074. (608) 263-1875
  1075.  
  1076. +++++++++++++++++++++++++++
  1077.  
  1078. From: jverdega@cae.wisc.edu (Jeffrey Verdegan)
  1079. Date: 24 Apr 92 20:16:17 GMT
  1080. Organization: College of Engineering, Univ. of Wisconsin-Madison
  1081.  
  1082. In article <1992Apr24.135320.26891@doug.cae.wisc.edu> I write:
  1083.  
  1084. >Okay.  I'm confused.  My app was working (more or less) with THINK C 4.0.  
  1085. >Now I'm in the process of upgrading to 5.0.2, and I'm having a wee bit of 
  1086. >trouble.  TEIdle doesn't seem to be working.  When I start the app, the 
  1087.  
  1088. ...and a bunch more drivel about the insertion bar not blinking.  I figured
  1089. it out.  It was my fault.  As I was moving stuff around in the interest of
  1090. clean code, I moved the definition of the variable inForeGround, but I didn't
  1091. copy the initialization over, so my app thought is was in the background for
  1092. all intents and purposes, almost.  There was just enough of it that knew it
  1093. was in the foreground to *look* like it was in the foreground, so it took a 
  1094. while to even consider looking at that.
  1095.  
  1096. Oops.  Color me sheepish.  <8) 
  1097.  
  1098.  
  1099.  
  1100. - ----------
  1101.  
  1102. Jeff Verdegan
  1103. University of Wisconsin-Madison
  1104. Computer-Aided Engineering Center
  1105. jjv@caestaff.engr.wisc.edu
  1106. (608) 263-1875
  1107.  
  1108. ---------------------------
  1109.  
  1110. From: mhall@occs.cs.oberlin.edu (Matthew Hall)
  1111. Subject: Color picts drawing in B$W. HELP!
  1112. Date: 25 Apr 92 22:38:40 GMT
  1113. Organization: Oberlin College Computer Science
  1114.  
  1115. Hello-
  1116.     I have a problem. I'm drawing color pictures in a color window
  1117. with a palette that I loaded from a resource. (a grey scale and a red
  1118. blue ramp).  I draw the image, open a picture, copybits it to itself,
  1119. close the picture and save it in a resource file.
  1120.     Now, naievely expecting that if I use a color window with the
  1121. same palette as I drew the picture in, and load the resource and draw
  1122. it, I should get my nice beautiful picture in full glory.  Instead, I
  1123. only get a black and white picture where everything is black except
  1124. the parts that were strictly white in the color image.
  1125.     If I don't set the palette in my window, the picture draws in
  1126. an approximation to the original colors, but definitely not the nice
  1127. smooth greyscales that I got before.  
  1128.     Looking with lightsbug at the picture data, I find, first of
  1129. all, that some of the things IMV says should be 0 or -1, just aren't,
  1130. such as the pmTable field (set to the same as ThePorts pixmap), and
  1131. the ctseed field of the color data, but
  1132. that the color information contains 256 colors and looks like a
  1133. greyscale.
  1134.     WHY IS THIS HAPPENING?  More specifically, how do I use the
  1135. greyscales that I want?  I have code for storing pixmaps in a data
  1136. file, but I would really like to use PICTs, since resources are
  1137. handier, and picture does automatic compression.  So please, can
  1138. someone tell me what is going on and how to stop it.
  1139.  
  1140. - -matt hall
  1141.  
  1142. P.S.  I remember seeing a thread here that you have to make sure that
  1143. CtSeeds of 2 cluts are equal for copybits to copy images without
  1144. translation.  Do I have to parse the picture defs of all my pictures
  1145. to find the appropriate ctseed and change my windows ctseed to it?
  1146. That would be a pain.
  1147.  
  1148. - --
  1149.  
  1150.  
  1151. - -------------------------------------------------------------------------------
  1152. Matt Hall.    mhall@occs.cs.edu  OR  SMH9666@OBERLIN.BITNET
  1153.               (216)-775-5805 (That's a Cleveland Area code. Lucky Me)
  1154.  
  1155. "If a man comes up to you and says:
  1156.     'A dog just carried away your ear.'
  1157. Do you run after the dog, or search first for your ear?" - Moon over Morocco
  1158.   
  1159.  
  1160. +++++++++++++++++++++++++++
  1161.  
  1162. From: mhall@occs.cs.oberlin.edu (Matthew Hall)
  1163. Date: 27 Apr 92 03:31:04 GMT
  1164. Organization: Oberlin College Computer Science
  1165.  
  1166. A little while ago I wrote:
  1167. >
  1168. >   P.S.  I remember seeing a thread here that you have to make sure that
  1169. >   CtSeeds of 2 cluts are equal for copybits to copy images without
  1170. >   translation.  Do I have to parse the picture defs of all my pictures
  1171. >   to find the appropriate ctseed and change my windows ctseed to it?
  1172. >   That would be a pain.
  1173. >
  1174.  
  1175. It doesn't work, I don't think.  Please help soon, I won't have
  1176. internet access in 2 weeks.
  1177.  
  1178. thank you
  1179. - -matt hall
  1180.  
  1181. - --
  1182.  
  1183.  
  1184. - -------------------------------------------------------------------------------
  1185. Matt Hall.    mhall@occs.cs.edu  OR  SMH9666@OBERLIN.BITNET
  1186.               (216)-775-5805 (That's a Cleveland Area code. Lucky Me)
  1187.  
  1188. "If a man comes up to you and says:
  1189.     'A dog just carried away your ear.'
  1190. Do you run after the dog, or search first for your ear?" - Moon over Morocco
  1191.   
  1192.  
  1193. ---------------------------
  1194.  
  1195. End of C.S.M.P. Digest
  1196. **********************
  1197.